package com.example.web.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.web.entity.User;

import lombok.extern.slf4j.Slf4j;

@RestController
@Slf4j
public class UserController {

	
	@PostMapping("/user")
	public User add() {
		User user = new User();
		log.info("user:{}",user);
		user.setId(1);
		user.setName("anny");
		user.setSex("girl");
		
		return user;
	}

	
}
